package com.zrrd.common.exception;

import com.zrrd.model.common.enums.AppHttpCodeEnum;

/**
 * @author WanJl
 * @version 1.0
 * @title CustomException
 * @description 自定义异常
 * @create 2023/9/13 9:28
 */
public class CustomException extends RuntimeException{
    private AppHttpCodeEnum appHttpCodeEnum;

    /**
     * Constructs a new runtime exception with {@code null} as its
     * detail message.  The cause is not initialized, and may subsequently be
     * initialized by a call to {@link #initCause}.
     */
    public CustomException(AppHttpCodeEnum appHttpCodeEnum) {
        this.appHttpCodeEnum = appHttpCodeEnum;
    }

    public AppHttpCodeEnum getAppHttpCodeEnum() {
        return appHttpCodeEnum;
    }
}
